#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
	char ch[20] = "hello word!";
	//gets(ch);
	char* p1 = &ch;
	while (*p1 != '\0')
	{
		printf("%c", *p1);
		p1++;
	}
	printf("\n");
	int len = strlen(ch);
	char* p2 = ch + len - 1;
	while (p2 >= ch)
	{
		printf("%c", *p2);
		p2--;
	}
	printf("\n");
	return 0;
}